import request from "@/utils/request";
//登录接口
export const sysLogin = (data) => {
  return request({
    url: "/sys/login",
    method: "POST",
    data,
  });
};
//获取用户基本信息
export const sysProfile = (data) => {
  return request({
    url: "/sys/profile",
    method: "POST",
    data,
  });
};

// 获取用户头像等其它用户信息
export const sysUser = (id) => {
  return request({
    url: `/sys/user/${id}`,
  });
};
